{{ define "welcome" }}
{{ template "header" . }}

<h1 style="text-align: center; margin-top: 0; color: #1f2937;">
    {{ if ne SiteName "" }}
    Welcome to {{ SiteName }}
    {{ else }}
    Welcome to Libredesk
    {{ end }}
</h1>

<p>A new account has been created for you with <strong>{{ .Email }}</strong></p>

<p>To set your password, click the button below:</p>

<p style="color: #ef4444; font-size: 14px; margin-bottom: 16px;">This link will expire in 24 hours.</p>

<div style="text-align: center; margin: 24px 0;">
    <a href="{{ RootURL }}/set-password?token={{ .ResetToken }}" class="button">
        Set Your Password
    </a>
</div>

<div style="text-align: center; margin-top: 24px;">
    <p>After setting your password, <a href="{{ RootURL }}">log in here</a></p>
</div>

{{ template "footer" . }}
{{ end }}